﻿Public Class frmError

    Public Sub New(ByVal error__1 As Entity.ServiceError)
        'Me.eventTextBox.Text = If(error__1.EventID, [String].Empty)
        Me.InitializeComponent()
        eventTextBox.Text = error__1.EventID
        numberTextBox.Text = error__1.Number.ToString()
        descriptionTextBox.Text = If(error__1.Description, [String].Empty)


    End Sub

    Public Sub New(ByVal error__1 As Entity.ValidationError)
        Me.InitializeComponent()
        'Me.eventTextBox.Text = If(error__1.EventID, [String].Empty)
        eventTextBox.Text = error__1.EventID

        numberTextBox.Text = error__1.Number.ToString()
        descriptionTextBox.Text = If(error__1.Description, [String].Empty)
        ' Node...


    End Sub

    Public Sub New(ByVal error__1 As Entity.SessionError)
        Me.InitializeComponent()
        numberTextBox.Text = error__1.Status.ToString()
        descriptionTextBox.Text = If(error__1.Description, [String].Empty)
    End Sub

    Public Sub New(ByVal error_1 As Entity.AppJsonError)
        Me.InitializeComponent()
        numberTextBox.Text = error_1.Codigo.ToString()
        descriptionTextBox.Text = error_1.Mensaje.ToString()
    End Sub

    Public Sub New(ByVal error_1 As Entity.SessionJsonError)
        Me.InitializeComponent()
        numberTextBox.Text = error_1.Codigo
        descriptionTextBox.Text = error_1.Mensaje
    End Sub

    Public Sub New(ByVal error_1 As Entity.ValidationJsonError)
        Me.InitializeComponent()
        numberTextBox.Text = error_1.Codigo
        descriptionTextBox.Text = error_1.Mensaje

    End Sub


    Private Sub okButton_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles okButton.Click
        Close()

    End Sub
End Class